<template>
  <div
    class="all"
    :style="{ height: screenHeight + 'px', width: screenWidth + 'px' }"
  >
    <Return txt="资料设置" style="background: #eeeeee"></Return>
    <div class="row" @click="shezhiTap">
      <div class="rowOne">设置备注和描述</div>
      <div class="rowtwo">
        我的世界
        <van-icon name="arrow" />
      </div>
    </div>
    <div class="row" style="border-bottom: 5px solid #eee">
      <div class="rowOne">设置备注和描述</div>
      <div class="rowtwo">
        <van-icon name="arrow" />
      </div>
    </div>
    <div class="row">
      <div class="rowOne">把他推荐给朋友</div>
      <div class="rowtwo">
        <van-icon name="arrow" />
      </div>
    </div>
    <div class="row"  @click="jubaoTap">
      <div class="rowOne">举报</div>
      <div class="rowtwo">
        <van-icon name="arrow" />
      </div>
    </div>
    <div class="delete" @click="dleteTap">删除</div>
            <van-overlay
      :show="show"
      @click="show = false"
      style="background: rgba(30, 30, 30, 0.5)"
    >
      <div class="wrapper" @click.stop>
        <div class="block">
           <div class="blockOne ">将此联系人删除，同时删除与该联系人的聊天记录</div>
          <div class="blockOne block1">删除联系人</div>
          <div class="blockOne" @click="show = false">取消</div>
        </div>
      </div>
    </van-overlay>
  </div>
</template>
<script>
import Return from "../../../components/return";
export default {
  components: {
    Return,
  },
  data() {
    return {
      screenWidth:
        window.innerWidth ||
        document.documentElement.clientWidth ||
        document.body.clientWidth,
      screenHeight:
        window.innerHeight ||
        document.documentElement.clientHeight ||
        document.body.clientHeight,
         show:false
    };
  },
  methods: {
    shezhiTap() {
      this.$router.push("/msgpeopleone");
    },
        jubaoTap(){
        this.$router.push("/tousu"); 
    },
    dleteTap(){
        this.show=true
    }
  },
};
</script>
<style scoped>
.all {
  background: #eeeeee;
}
.row {
  height: 50px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  background: #fff;
}
.row1 {
  height: 70px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.rowtwo {
  display: flex;
  align-items: center;
}
.rowtwo img {
  width: 30px;
  height: 30px;
}
.delete {
  height: 50px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: red;
  background: #fff;
  margin-top: 120px;
}
.block {
  height: 215px;
  width: 100%;
  position: fixed;
  right: 0px;
  bottom: 0px;
  z-index: 100;
  background: rgba(255, 255, 255, 1);
  border-radius: 5px;
  z-index: 999;
}
.blockOne {
  height: 68px;
  width: 100%;
  text-align: center;
  line-height: 68px;
}
.block1 {
  border-bottom: 5px solid #bebebe;
  color: red;
}
</style>